home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1994 / MacHack 1994.toast / MacHack™ 1987-1994 / MacHack™ '87 / Utilities ƒ / Icon Utilities ƒ / Icon Creation / How to Give an Icon(text) < prev    next >
Encoding:
Text File  |  1985-11-15  |  2.3 KB  |  40 lines  |  [TEXT/MACA]

  1. This is a complete description of how to add an icon to a program that doesn't
  2. have one.  Some of this info is taken from a discussion which took place
  3. between Brian Ebarb and Dave Phillips on the Micro-Tech-Net BBS, based at
  4. Texas Tech University.  I edited the stuff and added some explanations of my
  5. own to create this file.   ASMCOR
  6.  
  7.  1. Open ResEdit.
  8.  2. Open application into which you want to put the icon resources      
  9.     (let's call it the target)                        
  10.  3. Open any other application with its own icon (call it the source).
  11.  4. Copy BNDL, FREF, and ICN# from source into target.
  12.  5. Open target BNDL and change the owner's name to any unique 4 characters not    
  13.     used by another application, for example XXXX.  
  14.  6. Close BNDL and select "New" from the "File" menu.  
  15.  7. A mini-finder appears with resource names. The default resource appears as
  16.     GNRL.  Replace GNRL with your owner name (in this case, XXXX) and then
  17.     click "OK."  This will create a new resource which becomes the version
  18.     resource.  
  19.  9. Double click XXXX to open it.  Now select "Get Info" from the
  20.     file menu.  A dialog box appears with the ID number in an edit field.
  21.     Change the ID number to 0. 
  22.  9. Close ResEdit and open FEdit.  
  23. 10. Open the disk (volume) with FEdit.  
  24. 11. Choose "Volume Directory" from the display menu.  
  25. 12. Find your application and select it by clicking that line with the mouse.
  26. 13. Click the "Set Attr" button.  Now click the box labeled "Bundle" and change
  27.     the owner name to XXXX.  
  28. 14. Quit FEdit.
  29.  
  30.     The final procedure is to rebuild the desktop file. The desktop file is an
  31. invisible file which stores the icons currently used displayed on the desktop.
  32. Until you can convince the finder to rebuild the desktop file, the desktop will
  33. continue to display the same icons.
  34.     The simplest way to rebuild the desktop file is by double-clicking the
  35. finder while holding down the option and command keys.  Hold the keys down
  36. until the disk icon appears.  If the icon appears closed, that means that the
  37. desktop has actually been rebuilt.This will destroy all your folders, however.
  38.   The best way is to use the application PURGE.ICONS which is here in the
  39. database.
  40.